import {createApp} from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementPlus from 'element-plus'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
import 'element-plus/dist/index.css'
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import '@/assets/css/global.css'
import '@/router/permission.js'

import * as echarts from 'echarts'

const app = createApp(App)
// 全局注册el-icon
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
 app.component(key, component)
}
  app.use(store)
     .use(router)
     .use(ElementPlus, {locale: zhCn})
     .use(echarts).mount('#app');


